Ext.namespace('system');
system.tryPerformance = function(config) {
	Ext.applyIf(this, config);
	this.initUIComponents();
	system.tryPerformance.superclass.constructor.call(this);
};

Ext.extend(system.tryPerformance, Ext.Panel, {
	initUIComponents : function() {
				
				Ext.apply(this, 
//*********以下内容使用formbuilder生成***************	
				
				
				
				

				
				
				

{
xtype:"panel",
layout:"fit",
items:[{
    layout:"border",
    height:700,
    items:[{
        region:"center",
        items:[{
            xtype:"tabpanel",
            activeTab:0,
            id:"rootTabPanel",
            items:[{
                xtype:"panel",
                title:"DDoS",
                id:"panelDDoS",
                items:[{
                    xtype:"panel",
                    title:"",
                    height:1000,
                    items:[{
                        xtype:"tabpanel",
						id:"tabpanelDoS",
                        activeTab:0,
                        items:[{
                            xtype:"panel",
                            title:"UDP Flood",
							id:"panelUDP",
                            items:[{
                                xtype:"form",
                                title:"",
                                buttons:[{
                                    id:"udpButtonCalc",
                                    text:"计算"
                                  },{
                                    id:"udpButtonSave",
                                    text:"保存"
                                  },{
                                    id:"udpButtonListHistory",
                                    text:"显示历史结果"
                                  },{
                                    id:"udpButtonTest",
                                    text:"Test"
                                  }],
                                height:500,
                                items:[{
                                    xtype:"radio",
                                    id:"radioUDPH",
                                    fieldLabel:"",
                                    boxLabel:"算法H",
                                    name:"radio",
                                    inputValue:"radiovalue",
                                    hideLabels:true
                                  },{
                                    xtype:"radio",
                                    fieldLabel:"",
                                    boxLabel:"算法W",
                                    checked:true,
                                    id:"radioUDPW",
                                    name:"radio",
                                    inputValue:"radiovalue",
                                    hideLabels:true
                                  },{
                                    id:"udpTextLp",
                                    xtype:"numberfield",
                                    value:1000,
                                    fieldLabel:"数据包长度(Bytes)",
                                    decimalPrecision:3
                                  },{
                                    id:"udpTextBw",
                                    xtype:"numberfield",
                                    decimalPrecision:3,
                                    value:4,
                                    fieldLabel:"瓶颈带宽(Mbps)"
                                  },{
                                    id:"udpTextIr",
                                    xtype:"numberfield",
                                    decimalPrecision:3,
                                    value:0.5,
                                    fieldLabel:"正常请求平均间隔(s)"
                                  },{
                                    id:"udpTextIa",
                                    xtype:"numberfield",
                                    decimalPrecision:3,
                                    value:0.01,
                                    fieldLabel:"攻击请求平均间隔(s)"
                                  },{
                                    id:"udpTextLt",
                                    xtype:"numberfield",
                                    decimalPrecision:3,
                                    value:5,
                                    fieldLabel:"一次会话传输的数据总量(mBytes)"
                                  },{
                                    id:"udpTextT",
                                    xtype:"numberfield",
                                    decimalPrecision:3,
                                    fieldLabel:"平均停留时间"
                                  },{
                                    id:"udpTextE",
                                    xtype:"numberfield",
                                    decimalPrecision:3,
                                    fieldLabel:"UDP Flood攻击绩效"
                                  }]
                              }]
                          },{
                            xtype:"panel",
                            title:"SYN Flood",
							id:"panelSYN",
                            items:[{
                                xtype:"form",
                                title:"",
                                buttons:[{
                                    id:"synButtonCalc",
                                    text:"计算"
                                  },{
                                    id:"synButtonSave",
                                    text:"保存"
                                  },{
                                    id:"synButtonListHistory",
                                    text:"显示历史结果"
                                  }],
                                height:500,
                                items:[{
                                    xtype:"radio",
                                    id:"radioSYNH",
                                    fieldLabel:"",
                                    boxLabel:"算法H",
                                    name:"radio",
                                    inputValue:"radiovalue"
                                  },{
                                    xtype:"radio",
                                    fieldLabel:"",
                                    id:"radioSYNW",
                                    checked:true,
                                    boxLabel:"算法W",
                                    name:"radio",
                                    inputValue:"radiovalue"
                                  },{
                                    xtype:"numberfield",
                                    value:1000,
                                    fieldLabel:"数据包长度(Bytes)",
                                    decimalPrecision:3,
                                    id:"synTextLp"
                                  },{
                                    xtype:"numberfield",
                                    decimalPrecision:3,
                                    value:4,
                                    fieldLabel:"瓶颈带宽(Mbps)",
                                    id:"synTextBw"
                                  },{
                                    xtype:"numberfield",
                                    decimalPrecision:3,
                                    value:0.5,
                                    fieldLabel:"正常请求平均间隔(s)",
                                    id:"synTextIr"
                                  },{
                                    xtype:"numberfield",
                                    decimalPrecision:3,
                                    value:0.01,
                                    fieldLabel:"攻击请求平均间隔(s)",
                                    id:"synTextIa"
                                  },{
                                    xtype:"numberfield",
                                    decimalPrecision:3,
                                    value:5,
                                    fieldLabel:"一次会话传输的数据总量(mBytes)",
                                    id:"synTextLt"
                                  },{
                                    xtype:"numberfield",
                                    decimalPrecision:10,
                                    fieldLabel:"平均停留时间",
                                    id:"synTextT"
                                  },{
                                    xtype:"numberfield",
                                    fieldLabel:"半开队列长度",
                                    name:"numbervalue",
                                    id:"synTextM",
                                    value:15,
                                    decimalPrecision:3
                                  },{
                                    xtype:"numberfield",
                                    fieldLabel:"半开连接超时时间(s)",
                                    name:"numbervalue",
                                    value:15,
                                    id:"synTextSa",
                                    decimalPrecision:3
                                  },{
                                    xtype:"numberfield",
                                    fieldLabel:"客户端到服务器延迟(s)",
                                    name:"numbervalue",
                                    value:0.05,
                                    id:"synTextDelay",
                                    decimalPrecision:3
                                  },{
                                    xtype:"numberfield",
                                    fieldLabel:"客户端请求重试间隔(s)",
                                    name:"numbervalue",
                                    value:5,
                                    id:"synTextTi",
                                    decimalPrecision:3
                                  },{
                                    xtype:"numberfield",
                                    decimalPrecision:10,
                                    fieldLabel:"SYN Flood拒绝服务概率",
                                    id:"synTextPb"
                                  },{
                                    xtype:"numberfield",
                                    decimalPrecision:10,
                                    fieldLabel:"SYN Flood攻击绩效",
                                    id:"synTextE"
                                  }]
                              }]
                          },{
                            title:"绩效对比",
                            width:600,
                            xtype:"panel",
                            id:"panelCompare",
                            items:[{
                                frame:true,
                                region:"center",
                                xtype:"form",
                                width:200,
                                height:100,
                                items:[{
                                    xtype:"numberfield",
                                    decimalPrecision:3,
                                    value:1000,
                                    fieldLabel:"数据包长度(Bytes)",
                                    id:"compareTextLp"
                                  },{
                                    xtype:"numberfield",
                                    decimalPrecision:3,
                                    value:4,
                                    fieldLabel:"瓶颈带宽(Mbps)",
                                    id:"compareTextBw"
                                  },{
                                    xtype:"numberfield",
                                    decimalPrecision:3,
                                    value:"15",
                                    fieldLabel:"半开队列长度",
                                    id:"compareTextM"
                                  },{
                                    xtype:"numberfield",
                                    decimalPrecision:3,
                                    value:"10",
                                    fieldLabel:"半开连接超时时间(s)",
                                    id:"compareTextSynSa"
                                  },{
                                    xtype:"numberfield",
                                    decimalPrecision:3,
                                    value:0.5,
                                    fieldLabel:"正常请求平均间隔(s)",
                                    id:"compareTextIr"
                                  },{
                                    xtype:"numberfield",
                                    decimalPrecision:3,
                                    value:"10",
                                    fieldLabel:"攻击强度从(次/s)",
                                    id:"compareTextMinLambdaA"
                                  },{
                                    xtype:"numberfield",
                                    decimalPrecision:3,
                                    value:"100",
                                    fieldLabel:"至(次/s)",
                                    id:"compareTextMaxLambdaA"
                                  },{
                                    xtype:"numberfield",
                                    decimalPrecision:3,
                                    value:5,
                                    fieldLabel:"重试间隔(s)",
                                    id:"compareTextTi"
                                  },{
                                    xtype:"numberfield",
                                    decimalPrecision:3,
                                    value:5,
                                    fieldLabel:"一次会话传输的数据总量(mBytes)",
                                    id:"compareTextLt"
                                  },{
                                    id:"compareButtonCalc",
                                    text:"计算",
                                    xtype:"button"
                                  },{
                                    xtype:"numberfield",
                                    decimalPrecision:3,
                                    fieldLabel:"平均停留时间"
                                  },{
                                    xtype:"numberfield",
                                    fieldLabel:"UDP Flood攻击绩效"
                                  }]
                              },{
                                xtype:"panel",
                                title:"Panel",
                                region:"south",
                                height:350,
                                id:"comparePanelChart"
                              }]
                          },{
                            title:"博弈",
                            xtype:"panel",
                            items:[{
                                title:"zz",
                                frame:true,
                                region:"center",
                                xtype:"form",
                                width:200,
                                height:100,
                                items:[{
                                    xtype:"numberfield",
                                    decimalPrecision:3,
                                    value:1000,
                                    fieldLabel:"数据包长度(Bytes)",
                                    id:"gameTextLp"
                                  },{
                                    xtype:"numberfield",
                                    decimalPrecision:3,
                                    value:10,
                                    fieldLabel:"半开连接超时(s)",
                                    id:"gameTextSa"
                                  },{
                                    xtype:"numberfield",
                                    decimalPrecision:3,
                                    value:0.5,
                                    fieldLabel:"正常请求平均间隔(s)",
                                    id:"gameTextIr"
                                  },{
                                    xtype:"numberfield",
                                    decimalPrecision:3,
                                    value:10,
                                    fieldLabel:"一次会话传输的数据总量(mBytes)",
                                    id:"gameTextLt"
                                  },{
                                    xtype:"numberfield",
                                    decimalPrecision:3,
                                    fieldLabel:"重试间隔(s)",
                                    value:"5",
                                    id:"gameTextTi"
                                  },{
                                    xtype:"numberfield",
                                    decimalPrecision:3,
                                    fieldLabel:"攻击方拥有的傀儡主机数",
                                    name:"numbervalue",
                                    value:"5",
                                    id:"gameTextZ"
                                  },{
                                    xtype:"numberfield",
                                    decimalPrecision:3,
                                    fieldLabel:"每台傀儡主机可发起的UDP Flood攻击强度(次/s)",
                                    name:"numbervalue",
                                    value:"20",
                                    id:"gameTextRudp"
                                  },{
                                    xtype:"numberfield",
                                    decimalPrecision:3,
                                    fieldLabel:"每台傀儡主机可发起的SYN Flood攻击强度(次/s)",
                                    name:"numbervalue",
                                    value:"1",
                                    id:"gameTextRsyn"
                                  },{
                                    xtype:"numberfield",
                                    decimalPrecision:3,
                                    fieldLabel:"防护方总投入",
                                    name:"numbervalue",
                                    value:"5",
                                    id:"gameTextI"
                                  },{
                                    xtype:"numberfield",
                                    decimalPrecision:3,
                                    fieldLabel:"半开队列单位成本",
                                    name:"numbervalue",
                                    value:"1",
                                    id:"gameTextUq"
                                  },{
                                    xtype:"numberfield",
                                    decimalPrecision:3,
                                    fieldLabel:"带宽单位成本",
                                    name:"numbervalue",
                                    value:"2",
                                    id:"gameTextUb"
                                  },{
                                    text:"博弈",
                                    xtype:"button",
                                    id:"gameButtonCalc"
                                  },{
                                    xtype:"numberfield",
                                    decimalPrecision:3,
                                    fieldLabel:"平均停留时间"
                                  },{
                                    xtype:"numberfield",
                                    decimalPrecision:3,
                                    fieldLabel:"UDP Flood攻击绩效"
                                  }]
                              },{
                                xtype:"textarea",
                                region:"south",
                                height:200,
                                id:"gameTextMatrix"
                              }]
                          }]
                      }]
                  }]
              },{
                xtype:"panel",
                title:"蠕虫",
                items:[{
                    xtype:"panel",
                    title:"",
                    height:1000,
                    items:[{
                        xtype:"form",
                        title:"",
                        height:500,
                        buttons:[{
                            text:"计算"
                          },{
                            id:"save",
                            text:"保存"
                          },{
                            text:"显示历史结果"
                          }],
                        items:[{
                            xtype:"numberfield",
                            fieldLabel:"购置维护费用",
                            name:"numbervalue"
                          },{
                            xtype:"numberfield",
                            fieldLabel:"响应时间",
                            name:"numbervalue"
                          },{
                            xtype:"numberfield",
                            fieldLabel:"资源消耗",
                            name:"numbervalue"
                          },{
                            xtype:"numberfield",
                            fieldLabel:"漏报率",
                            name:"numbervalue"
                          },{
                            xtype:"numberfield",
                            fieldLabel:"社会因素",
                            name:"numbervalue"
                          },{
                            xtype:"numberfield",
                            fieldLabel:"感染主机数",
                            name:"numbervalue"
                          },{
                            xtype:"numberfield",
                            fieldLabel:"蠕虫防护绩效",
                            name:"numbervalue"
                          }]
                      }]
                  }]
              }]
          }]
      },{
        region:"east",
        width:724,
        height:700,
        layout:"fit",
        items:[{
            xtype:"panel",
            title:"Panel",
            layout:"accordion",
            items:[{
                title:"历史结果列表",
                html:"Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed non risus.",
                id:"panelGrid"
              },{title:"test",layout:"fit",items:[{id:"test",xtype:"label",text:"s",height:100}]},{
                title:"历史结果曲线图",
                autoHeight:true,
                layout:"fit",
                id:"panelChart"
              }]
          }]
      }]
  }]
}






//*********以上内容使用formbuilder生成***************
);//Ext.apply(







		
}//initUIComponents
}//Ext.extend
)//Ext.extend